<template lang="">
    <div class='chart-box'>
        1333
    </div>
</template>
<script>
import * as echarts from 'echarts'
export default {
    props:['option'],
    data(){
        return{
            charty:null
        }
    },
    mounted(){
       this.charty = echarts.init(this.$el);
        this.chart();
    },
    methods: {
        chart(){
            if(!this.option) return;
            this.charty.setOption(this.option)
        }
    },
}
</script>
<style lang="scss">
     .chart-box{
        width: 100%;
        height: 100%;
     }
</style>